package com.eduction.service.impl;

import java.sql.SQLException;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.eduction.modules.target.dao.MonitorSeeMapRepository;
import com.eduction.modules.target.entity.MonitorSeeMap;
import com.eduction.service.MonitorSeeMapService;

@Service
public class MonitorSeeMapServiceImpl implements MonitorSeeMapService {

	@Autowired
	private MonitorSeeMapRepository monitorSeeMapRepository;
	
	@Override
	public List<MonitorSeeMap> queryMonitorSeeMapByFid(String fid) throws SQLException {
		List<MonitorSeeMap> list = monitorSeeMapRepository.queryMonitorSeeMapByFid(fid);
		return list;
	}

	@Override
	public MonitorSeeMap queryMonitorSeeMapByPid(String pid) throws SQLException {
		MonitorSeeMap m = monitorSeeMapRepository.queryMonitorSeeMapByPid(pid);
		return m;
	}

	@Override
	public void savaMonitorSeeMapInfo(MonitorSeeMap m) {
		monitorSeeMapRepository.savaMonitorSeeMapInfo(m);
		
	}

	@Override
	public List<MonitorSeeMap> queryMonitorSeeMapPrice(String fid,String schoolId) throws SQLException {
		List<MonitorSeeMap> list = monitorSeeMapRepository.queryMonitorSeeMapPrice(fid,schoolId);
		return list;
	}

}
